import type { AxiosError } from "axios";

export const formatError = (e: AxiosError): string => {
  return `HttpCode: ${e?.response?.status} ${e?.response?.statusText}
  Data: ${JSON.stringify(e?.response?.data)}
  URL: ${e?.response?.config.url}
  `;
};
